package com.ruoyi.mdm.service;

import java.util.List;

import com.ruoyi.mdm.domain.WeightRule;

/**
 * 权重规则Service接口
 *
 * @author shiseido
 * @date 2025-02-28
 */
public interface IWeightRuleService {
    /**
     * 查询权重规则
     *
     * @param id 权重规则主键
     * @return 权重规则
     */
    public WeightRule selectWeightRuleById(Long id);

    /**
     * 查询权重规则列表
     *
     * @param weightRule 权重规则
     * @return 权重规则集合
     */
    public List<WeightRule> selectWeightRuleList(WeightRule weightRule);

    /**
     * 新增权重规则
     *
     * @param weightRule 权重规则
     * @return 结果
     */
    public int insertWeightRule(WeightRule weightRule);

    /**
     * 修改权重规则
     *
     * @param weightRule 权重规则
     * @return 结果
     */
    public int updateWeightRule(WeightRule weightRule);

    /**
     * 批量删除权重规则
     *
     * @param ids 需要删除的权重规则主键集合
     * @return 结果
     */
    public int deleteWeightRuleByIds(Long[] ids);

    /**
     * 删除权重规则信息
     *
     * @param id 权重规则主键
     * @return 结果
     */
    public int deleteWeightRuleById(Long id);
}
